package com.yyy.dm.consumer.controller;

import com.yyy.dm.CommonResponse;
import com.yyy.dm.consumer.service.SchedulerSeatPriceConsumerService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/scheduler")
public class SchedulerSeatPriceConsumerController {
    @Resource
    private SchedulerSeatPriceConsumerService schedulerSeatPriceConsumerService;
    //根据场次查价格
    @PostMapping("/desc/getPrice")
    public CommonResponse getPrice(@RequestBody Map<String,Long> param){
        return schedulerSeatPriceConsumerService.getPrice(param.get("scheduleId"));
    }

}
